import request from '@/utils/request'

// 查询客户对应业务员列表
export function listCustomerinfouser(query) {
  return request({
    url: '/CustomerinfoUserMain/customerinfouser/list',
    method: 'get',
    params: query
  })
}

// 查询客户对应业务员详细
export function getCustomerinfouser(userId) {
  return request({
    url: '/CustomerinfoUserMain/customerinfouser/' + userId,
    method: 'get'
  })
}

// 新增客户对应业务员
export function addCustomerinfouser(data) {
  return request({
    url: '/CustomerinfoUserMain/customerinfouser',
    method: 'post',
    data: data
  })
}

// 修改客户对应业务员
export function updateCustomerinfouser(data) {
  return request({
    url: '/CustomerinfoUserMain/customerinfouser',
    method: 'put',
    data: data
  })
}

// 删除客户对应业务员
export function delCustomerinfouser(userId) {
  return request({
    url: '/CustomerinfoUserMain/customerinfouser/' + userId,
    method: 'delete'
  })
}
